package com.mindskip.xzs.viewmodel.admin.user;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mindskip.xzs.utility.excel.ExamTypeConverter;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author artka
 * @description:
 * @date 2022/9/16 11:15 PM
 */
@Data
@Accessors(chain = true)
public class EmployeeRes implements Serializable {
    private static final long serialVersionUID = 4670787369114436722L;

    @ExcelIgnore
    private Long id;
    @ExcelProperty(value = "员工姓名", index = 0)
    private String userName;

    /**
     * @see com.mindskip.xzs.domain.enums.UserStatusEnum
     */
    @ExcelIgnore
    private Integer status;

    @JsonIgnore
    @ExcelIgnore
    private String depart;

    @ExcelProperty(value = "归属部门", index = 2)
    private String departs;

    /**
     * 积分
     */
    @ExcelProperty(value = "积分", index = 1)
    private String credit;

    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
